import{ useState } from 'react'
import { Navigate } from "react-router-dom"


function UserDetail() {
  const [auth, setAuth] = useState<boolean>(false);
  // const params = useParams();
  // console.log(params.id);
  
  if (!auth) {
    return <Navigate  to="/login" from="user/detail" />
  }
  return (
    <div>UserDetail</div>
  )
}

export default UserDetail